Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next
Subject: Getting "Access denied" & "checkPermission" error while connecting Documentum through Lotus notes R 8.5.3
Feedback Type: Problem
Product Area: Designer Client
Technical Area: Error Message
Platform: Windows XP client
Release: 8.0.2
Reproducible: Always

Hi Team,

We are tring to connect Documentum through Lotus notes R 8.5.3, unsing below Java agent which takes dxl file as input. We have added required jar file and .property file but still java error gives below error on java console.

Please give me the possible solution for below error & also cause if possible.
============Error on Java console=====
Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission shutdownHooks)
at java.security.AccessController.checkPermission(AccessController.java:108)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
at COM.ibm.JEmpower.applet.AppletSecurity.superDotCheckPermission(AppletSecurity.java:1449)
at COM.ibm.JEmpower.applet.AppletSecurity.checkRuntimePermission(AppletSecurity.java:1311)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1611)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1464)
at java.lang.Runtime.addShutdownHook(Runtime.java:201)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.init(ModuleManager.java:291)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.getInstance(ModuleManager.java:35)
at com.documentum.fc.client.security.impl.DfcIdentityPublisher.<init>(DfcIdentityPublisher.java:44)
at com.documentum.fc.client.security.internal.RegistrationMgr.register(RegistrationMgr.java:34)
at com.documentum.fc.impl.RuntimeContext.<clinit>(RuntimeContext.java:191)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 9 more
================================================

===========Java Class file =====================
class UploadFiles
{

private static final String parentName="/dmadmin";
private static final String documentType="mail";
private static final String format="dxl";
private static final String userName="dmadmin";
private static final String passWord="Infosys123";
private static final String repositoryName="alstom_dev";

public void uploadtoDocumentum(String dxlFile) throws Exception {
IDfSession mySession = null;
IDfSessionManager sessionManager=getSessionManager(userName,passWord);
try
{

String st="In try block";
JOptionPane.showMessageDialog(null,st);

mySession = sessionManager.getSession(repositoryName);
IDfSysObject newDoc = (IDfSysObject) mySession.newObject(documentType);
newDoc.setObjectName(dxlFile);
newDoc.setContentType(format);
newDoc.setFile(dxlFile);
newDoc.link(parentName);
newDoc.save();
}
catch (Exception ex)
{
ex.printStackTrace();
}
finally
{
sessionManager.release(mySession);
}
}

public static IDfSessionManager getSessionManager
(String userName, String password) throws Exception
{

DfClientX clientx = new DfClientX();
IDfClient client = clientx.getLocalClient();
IDfSessionManager sessionMgr = client.newSessionManager();
IDfLoginInfo loginInfo = clientx.getLoginInfo();
loginInfo.setUser(userName);
loginInfo.setPassword(password);
sessionMgr.setIdentity(IDfSessionManager.ALL_DOCBASES, loginInfo);
return sessionMgr;
}
}

================================================


Feedback number WEBB8VLEGG created by ~Laura Umwebergoopsi on 06/25/2012






Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS